package com.lanou.pianke.search.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Document(indexName = "user",type = "user")
public class User {
    // 用户自增id
    @Id
    private Long id;
    // 页面用户id
    private Long uid;
    // 用户名称
    private String uname;
    // 用户密码
    private String password;
    // 用户头像
    private String icon;
    // 注册时间
    private Integer addtime;
    // 邮箱
    private String email;
    // 电话
    private String tel;
    // 性别
    private Integer sex;
    // 用户简介
    private String udesc;
    // 用户登录状态
    private Integer status;
    // 是否为管理员
    private Boolean admin;
    //用户状态:0表示存在 , 1 表示删除
    private Integer userStaus;
    // 用户被举报数
    private Integer userReport;

    public User() {
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getAddtime() {
        return addtime;
    }

    public void setAddtime(Integer addtime) {
        this.addtime = addtime;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getUdesc() {
        return udesc;
    }

    public void setUdesc(String udesc) {
        this.udesc = udesc;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Boolean getAdmin() {
        return admin;
    }

    public void setAdmin(Boolean admin) {
        this.admin = admin;
    }

    public Integer getUserStaus() {
        return userStaus;
    }

    public void setUserStaus(Integer userStaus) {
        this.userStaus = userStaus;
    }

    public Integer getUserReport() {
        return userReport;
    }

    public void setUserReport(Integer userReport) {
        this.userReport = userReport;
    }
}
